﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace WMS_Api.Models
{
    /// 返回结果集
    /// </summary>
    public class ApiResult
    {
        /// <summary>
        /// 编码
        /// </summary>
        public int Code { get; set; }
        /// <summary>
        /// 消息
        /// </summary>
        public string Message { get; set; }
        /// <summary>
        /// 附加数据
        /// </summary>
        public object Data { get; set; }
    }

    /// <summary>
    /// 请求返回码
    /// </summary>
    public enum ResultCode
    {
        /// <summary>
        /// 请求成功
        /// </summary>
        Success = 1,

        /// <summary>
        /// 服务器错误
        /// </summary>
        Error = -1,

        /// <summary>
        /// 参数错误
        /// </summary>
        ParaError = 1002,

        /// <summary>
        /// 其它错误
        /// </summary>
        OtherError = 1005,

        /// <summary>
        /// 
        /// </summary>
        MesSuccess = 0,

        /// <summary>
        /// 
        /// </summary>
        MesError = 1

    }
}